/**************************************************************************
* ++
* Author: Luu Dinh Nhat
* Module Name : Calendar.h
*
* Description : La noi khai bao bien va phuong thuc cua lop CFolderTree2D
*
* Mod. History : 08.06.2013 - Luu Dinh Nhat
* File first created
* VYI PROJECT
* Description
*
* --
************************************************************************/
#pragma once
#include "CFolderTree.h"
#include "CBoardCell2D.h"

// CFolderTree2D

class CFolderTree2D : public CFolderTree
{
private:
	CList<CBoardCell2D*> m_arrBoardCell;

	ULONG_PTR m_gdiplusToken; // GDI+ propertive

protected:
	DECLARE_DYNAMIC(CFolderTree2D)

public:
	CFolderTree2D();
	virtual ~CFolderTree2D();

	BOOL CreateFolderTree(int, int, const RECT&, CWnd*);
	void DrawFolderTree(Graphics*);
	void CalculateFolderTree(int);

protected:
	DECLARE_MESSAGE_MAP()
	void CreateMainRect(CRect*);

public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
};
